package com.caicai.web.caicaiwebinit;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@SpringBootApplication

@ComponentScan(basePackages={"com.caicai.*"})
@MapperScan(basePackages={"com.caicai.mapper"},annotationClass = Repository.class)
@EnableTransactionManagement
public class CaicaiWebInitApplication {

	public static void main(String[] args) {
		SpringApplication.run(CaicaiWebInitApplication.class, args);
	}

}